package awk;
public  class Test extends awk.LineHandler{    int count = 0 ;long sum = 0 ;
public  Test(){}
 public  void begin(){ 
{System.out.println("begin of the awk, " );}
}

 public void body(String[] args){
{System.out.println( args[0] ) ;sum+= Integer.parseInt(args[0]) ;count++ ;}
 }
 public void end(){
{System.out.println("end, sum" + sum +", total lines " + count);}
 }}